@extends('system.frame_layout')
<?php $parent_menu = "财务中心"; $menu_selected = "消费记录";?>

@section('content')
    <div id="content-panel">
        <div class="row">
            <div class="col-xs-12">
                <div class="portlet light bordered">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="icon-social-dribbble font-dark hide"></i>
                            <span class="caption-subject font-dark bold">会员消费记录 User Shopping Logs</span>
                        </div>
                    </div>
                    <div class="portlet-body">
                        <table class="table table-hover table-responsive">
                            <thead>
                            <tr>
                                <th>编号</th>
                                <th>钱包</th>
                                <th>类型</th>
                                <th>消费金额</th>
                                <th>备注</th>
                                <th>时间</th>
                            </tr>
                            </thead>
                            <tbody>
                            @foreach($logs as $log)
                                <tr>
                                    <td>{{$log->no}}</td>
                                    <td>
                                        @if($log->wallet == 1)
                                            奖金币钱包
                                        @elseif($log->wallet == 2)
                                            报单币钱包
                                        @endif
                                    </td>
                                    <td>
                                        @if($log->type == 0)
                                            增加
                                        @elseif($log->type == 1)
                                            消费
                                        @endif
                                    </td>
                                    <td>{{$log->money}}</td>
                                    <td>{{$log->intro}}</td>
                                    <td>{{date("Y-m-d H:i:s",$log->time)}}</td>
                                </tr>
                            @endforeach
                            </tbody>
                        </table>
                        @include('system.coms.fenye')
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection

@section('footer')
@endsection